add the size before the trasfer data, I do this because of the suggest of my collegue