add similarity and neighborhood.