return correct errors