solved  compile errors