update for edit