changed new_name to next_name