updated return value for create_file method