fixed contains method