add code to print accumulate threshold sum