2d code compiling