use new value of table fields in code