logic errors fix

brackets and parentheses.... *flips small table*