working code on tags