10 iterations border logic