resetting priors and turnoff