be more general for presence of err