making serialization