move check the file_size method