added missing return statement.