insert missing return statement