update method for workitem