contains method