worked on collision detection 1