updated number of data and chain length