improve download ending factor