partially implemented delete functionality