removed 'in' logic