eliminate unneeded parens; factor out a constant