it should write the attributes to file in the same order they are specified in the model