error checks missing return