refactoring loop
Optimisation des collisions