fix to get correct calculations for output nodes after update
calibrate for numerical diff between manual calculation and Clojure code