update example interface code