display loop range (with a one off error in a special case)