working on adding table figure functionality