using undilated mask