reset the right variables