added contains function