added matched histograms and enabled duty cycle