typo in code snippet