resize.c implemented and working