remove irrelevant code