slight improvement here on the filter for history entry