delete and update working