updates for canvas