changed ball pivoting iteration from points to indices