error and warning correction