a half-finished delete function