move btag to flat var