opt.stream's value should be function #9