added quadtrees (currently does not work)