bmp snippets