fixed file creation