modify device registration