added class for collisions