adding concept of hidden nodes