completed resize.c