this is confusing, you're using val and name interchangeable. I will propose to do `name = ns + '.' + val;` in the following line. If fact, I think I like the original ternary better.