add delete function.