tableUpdate function
Merged