changed example snippet code