foreach and first both