implement remove from index