purify structure