improved snippets for references