remove else clause for an error case