udpate ref table generation