modify some code in the textual similarity jon