implementing update table
implementing update table