the beginning of the new collision detection