use intermediate variable for tag expantion