solving bug in contains.