took account for ties