change registration id to device id