@michaelzangerle move this to a new function, thats a bit complex  ... and check enable before, so you can save a loop if it is not enabled