dev of masking code