added delete functionality