generated terminal words are saving by levels now. Also, they are caching in common set