correctedfinal copy of files to outdirectory