restructured CTU implementation