return process in main.c