added some text and dealt with ties