switched to encode explicit CTB tree