update code for consolidation