change the way table is populated