fixed the output of partitioned files