code consolidation