we should use `_.contains` instead of `indexOf` here