add Special Functions to N TODO
fix some bugs in N