new approach to serialization -- by passing char