rewrite pepys