fix bug -- can't actually replace table data way previously done