updated nowd.c