cleanup outdated codes