added to canvaswrapper