solve the clearLeftRecursion problem
a litte optimizing