remove unneded check for canvas