modify code errors