correct the snippet, add example