code-snipet fix