why `idx+1` instead of `idx` ?