added tag generation