generating dis rule, not finished