chaged reset variables to resetvars