work at update and insert