finish download file function