a clean up of errors