deserializing kind