using do while instead of for, which somehow makes more sense to me