precalculate total chunks and send everytime