formatting masking figure