updated for ties