add updateSizeTask inside mergeTask