fix for snippet