while & part of foreach