updated location query

#7