update example and make it work again