I have found a proper solution, but it is not allowed to post this, because the solution was found by Github Copilot. Sorry.