adjust tag code