fixed syntax error with update