cleaning up errors