added similarity measure to output results