What happens here if i = limit-1