moved collisions to own class