modification of the files Global, IRR and Z_thread