updated loop file