applying tag indices