added convert_name function