progress on choosePivot