realised i wasnt setting my initial for loop index to carry on from the
bottom value index value.