moved registerCollision into parent class