Adding mask to persim variable