overloaded constructor for location