remove debug code from advanced example