moved nep func and net mineralisation