adding midpoint replacement for tree branches - much more realistic result :)