error correcting in process.c