algortihm use function
matcher history
corrected bug in parsing with parenthese