corrected compilation errors