[by cdr] optimizations