working on ml network analysis; a couple of tweaks to ch2 on functions