in two aggregators type of intervalSize is different long and int. propose to use same type