foreach and for