added break to equal pivot comparison