rejigger the loop