pass in canvas