finished done and delete function