fixes compiling errors