maybe worth adding a comment here, it's not clear what it is doing.