correction to serialization