add similarity into the return value