added refactor of gensimUtil