fixed a bug that didnt deal w parentheses