printing tags properly