compile errors fixed