added code to print the actual tag