added tie-breaker