Some changes in Collision detection