write correct pic_order_count