remove irrelevant solutions