added multiruleALERT function