update element rules