removed the print statements in the masking code