fixed syntax errors and put  in parentheses