added snippets for constants and events