first collision detection