Method and arrangement for updating the target devices