function check file debugging