evaluate code for onNext