corrected some code references