Dealing with ties