added missing returned statement