changed program to fit new node evaluation