use range in PEach