bit of error catching