add similarity calculation