working delete and update