drop outdated and redundant elements