add update method and wrapper reference