add tag_hint fuction