new version of contains.c