rename to_sample to variable_mask