added similarity matrix