algo collision fixed