refactoring create tags