trying to implement canvas