`while i <= total`?