compilation errors fixed