rewriting jarpat