private void remove(int i) {
		if(size() >= i){
			if (i == 1) {
				firstElement = firstElement.getNextElement();
			} else if (i > 1) {
				Element tmpf = firstElement;
				Element tmps = firstElement.getNextElement();
				Element tmpt = firstElement.getNextElement().getNextElement();
	
				int count = 2;
				while (tmpt.getNextElement() != null) {
					if (count == i) {
						tmpf.setNextElement(tmpt);
						return;
					}
					tmpf = tmps;
					tmps = tmpt;
					tmpt = tmpt.getNextElement();
					count++;
				}
	
				if (i == count + 1) {
					tmps.setNextElement(null);
				}
			}
		}
	}