corrected compile errors