repair about length of data