added word frequency