rewrite Contact Traces