corrected length of chunks written