udpate rule