remove outdated keys