move the process sample code to multiprocess use for increased speed