fixed nowd.c