simplify createFile