adding new functionaality for linkedlist