fixed the errors on the profs code