wouldn't this need to be > iPos, because positions start at 0. So position iPos is actually already a length of iPos+1.