adding a copy-for-code-snippet utility function