upgrade compile errors