model update can take a table