delete method built but not yet fully working