added snippets from qdod