fixed bug with parenthesis