How to manually assign a location