added histograms from vs algorithm, but not running due to bug regarding candidatesViewRef