added delete functional for types