fixed up compiling errors