modified editAt methods in LinkedList