collision detection work in progress