updating rules