name_parse function implemented