added check for contains