collision detection was added