foreach loop limit