use next_name instead of get_next_name