writing the 'phase' and 'precedingPhases' fields in a new way