implemented get_location