initial serializing