So far network value calculation appears to be working.
forgot to put sum_val call into call_val