add CCMask and sample