run with processfn using next