thanks @allisonplus, no i didn’t get this fixed as in the end the build took me in a different direction and i didn’t need it for this specific project, but it’s helpful to know you think the code is correct. i’m sure i’ll need to do this at some point in the future so i guess i’ll see whether next time i have the same problem!