refactored code using Tags's _get method.