Remade the mathematicformulas in the collision