fixed errors in part one