removed loop error