adjust tag function