dynamic tag rename function added