a bit silly to run the loop here and then do it again