correct serialization order