fixed a bunch of parentheses and bracket errors