modified word frequency