removed compareValue and compareIndex in favor of second result of Compare