added the delete functionality