adding Func5-9 and N to the wrapper