consolidated code