added check for TAG