added missing return statement