new method of extracting tag