built the NN