updated delegation sample