make .tag() method implementation cleaner