If the loop starts from `pos = 1` you don't need the `pos+1` everywhere. You always add 1 to `pos`.