circumvent copy warnings

different, 1 step, logic to initialising the mask var.