fixing sortedmissing.txt output