completed updating and deleting