debugging for collision