tdidf and few other changes