edge of canvas working