update For Add Debug To Files Function easy to debug