What a methodology, Mario! I love it! I'm pretty sure I'll definitely keep following your lessons from here. Thank you very much for the amazing class!
the problem is that in your original setup you are multiplying with mask the original rest length (restlengthorig), but in the new setup you were multiplying current rest length value, thats the reason it behaved differently