first draft of parenthesing and precendence fixes