little incoherence fixed in one of the two for loops