easier usage of ismember()