this should not be called every time  check bw is called  since  check bw merely checks the bandwidth and should not handle the actual file s existance i suggest calling this  before  the wait until true  you can even call this multiple times until the size is correct  using another wait until true for this  