added querying the quadtree