worked on serialization code