generate reads, partition folder func