refactors updateTag slightly

Signed-off-by: Sam Heuck <sam@samheuck.com>