cleaned up wordcount