for update entity