methods calculateBestNodeBasedOnClustering and postExtractionCleanup was changed