deleted old loop