fixing typo in code snippet