fixes for canvasInput -- WORKS!!!