cleaned up tag.rb