rewrite mulitpart