compilation errors fix