perform serialization as well as deserialization in single iteration cycle