small improvements at rule evaluation