oops, I'd forgotten to implement the delete functionality