fixed issue updating tags
merging to include update to updateTag function