restarting from kclustering.py