trying to limit when the file is downloaded