remove irrelevant code.