fixed contains check in transaction