added a kdtree