found bug in collision detection