optimize quadtrees more