changed conditions in gensimUtil