error-checking practice