add callback to example