modidy resource.c