complete TAG script