added the delete function, rerouted the delete function