thanks for pointing out! I tried the borrowing trick from the previous segment, was pretty obvious, but for some reason failed as could not avoid at least one conditinonal... will try again.
https://gist.github.com/zokrezyl/8574bf5d40a6efae28c9569a8d6...