remove irrelevant stuff