for edit update