initialize threshold in updateOutput