simplified collision algorithm