add delete func.