fixed example snippet