added range query for location