added collision detection updates