initial dweight.c