use foreach to interate over orders