add definition of rules