correctly compute tiebreaks