update rule.cc
small changes