updated NN with bias weight