add smoothing algorithm to smooth out peaks and valleys in the text to tag ratio data