reference foreach