correct the consolidation script