finish linkedList api