added different types of collisions