added ui_to_str