finalizing processfn changes