fix for searches
setup to calculate similiraties