preparations for double linked lists