small changes to end of masking section