forEach to for list