rule detection updated.