debug collisions code