Canny defense