add a callback mecanism for collisions