removing this loop was a bad plan