add collision detection section