prepared collision detection