should be `const string& type_text` or `const string & type_text`