adding expand.c