modified source code in nnfqe