add mask to bsoperator