correct errors