adding in deserializing data