update for canvaswrapper