created seperate class for preventing collisions