remove irrelevant directions