alter to set Mask Mode programmatically