syntax error in update example