take out loop