should this be np.in1d?