fine tuning collision detection.