now creates correct filenames