deserializer. Without the hashmap