How will I traverse through the ranges which have been stored through union in "foundranges"?