fixed some unbalanced parens