update deprecated example