add the delete function