started to implement the octree restriction routines