switches out deprecated contains function for 'in'  syntax