add similarity threshold