finished word frequencies method