clean up errors