remove tags from factorial sample