the formatting here looks a little funky. mind just doing a while loop instead? I think that will make it look a little bit more clear