working on the tag stripping method