fix collision formula