testing before for loop