worked on double linked but not circular