Rewriting part 2