change_pivot_variables function

Change pivot variables