cleanup output nodes