fixed bug in new file names