combined both loops - didn't make much of an impact on performance though