changing collision detection