miscellaneous  snippets