fixing compile errors.