pasted code snippet in index