clean code in process.c