collision detection has been added