preventing stack overflow by stopping after 20th recursion of the same
rule.