public boolean insertAt(int index, E element) {
		
		LinkedElement<E> oldElem = findElement(index);
		
		if (index == total) {
			addLast(element); // increments total
			return true;
		}

		if (index == 0) {
			addFirst(element); // increments total
			return true;
		}

		if (oldElem != null) {
			LinkedElement<E> newElem = new LinkedElement<E>(element);
			LinkedElement<E> prev = oldElem.getPrev();

			newElem.setPrev(prev);
			prev.setNext(newElem);

			newElem.setNext(oldElem);
			oldElem.setPrev(newElem);

			total++;
			return true;
		}
		return false;
	}