some strong typing implemented for doubly linked lists