Generator and Syntax Error finding method add