added logging of collisions