decided to revert to singly linked list rather than double