update tag and create tag