corrected minor compile errors