remove kdtree