adding doubly linked