Argument to "update" should be a function, not an integer.