working on the rules defining