added auto_edit for update