corrected compiling mistakes