Switch from each to forloop for tracks array