update to rule_func -spec