cleaned up the embeded tableau code