You replaced for..in by for..of, why ?