rewrite second