added size of file check