TAG folding