added common.c