cleaned up extra parens in the code