expand on error detection