function make Rules