combine two for loop into one loop for Function getFastaStatsForGage