update for set a function to defined rule
explain status define rule