replace deprecated contains with in