change output directories for each files
add comments