started working on a performance friendlier collision detection