accept two arguments for process