implement loop to push packed until all the data isn't flush