having a function in CPP PTB would then make it easier to reuse it in the experiment template and the localizers