get rid of sum_of_logs (now unused)