handling collisions smoothly: