renames variables in next_to_two