box and text compiling