change linkedlist to queue in client.java