you iterate 2 times through the same list, why not doing it with one turn?