bug fix in contains