Replace each by native for loop -> speed up