fixing fluxvar units and adding mask