add the delete fuction