added collision detection component