pb foreach