dealing with collisions