almost got it to loop