enabling collision detection