fixed errors that came about during reformat