try getting the tag in one line then checking against it