added figure snippet