the item gets added to the vec before len is calculated, and since its 0-indexed we want to subtract 1