update rule in gammer