fixed  a couple compile errors