switch to set before saving rule results.