Rewrite some parts