cater for errors