contains to use fold-left instead of the fold without initial value