added the single loop