modified reheader to change ids