added a missing return statement