reduce number of define'd functions. nw.