khanna main algorithm still left