simplify error specifications