finished implementing delete functionality