writing pmxReader