added functionality for location