removed strange array loop error