use .indexOf instead of .some