update id for device