fixed issue with parentheses not being read correctly