calculate similarity and investigate data