added destroy and update