make sure collision_pairs is initialized as NULL