correct compiling errors