better to have this in init() then in getcanvas()