added comment explaining parse_parentheses