added figure output