update blockaverage and data