compilation errors fixing