hopefully this fixes the loop