remove irrelevant patches