corrected a few compile errors