simplify rules creation