replace table with figure