changed lengths.out to .MM.csv