change map to deserialize