added custom contains function