added collision detection via octree