adding sentiment frequency helper method