adds collision detection events