initialize position_mask variable