rewrite contains