modified tag-updating