add doubly pointer