function for downloading everything