changed main.c and common.h