fixed file generation