nested loops for circles