prefer for comp to foreach