$error checks