fix non-semantic syntax errors. note to ben: don't name a buffer the same thing as the array you're reading from