remove codes it used linked list.