adding file check