rewriting parts