consolidation of encoder states