wn functions