connected the compensation subprocess to the main process