fixed the canvas functions so it actually works;)