added support of balanced parentheses; changed some expressions to parentheses analysis since we are not interested in actual expression