primitive collision detection system added