the trigger code was improved, but serious issues remain even in the comparator code