contains with overriding equality
formatting