start of serialization