shorten the loop