maybe add some inline comment to explain what this is used for