public Node<E> getNode(Node<E> cur, int index)
	{

		//check to make sure that the beginning or the end of the list has not been reached
		if(cur.dummy && (index > size || index < 0))
		{
			throw new IndexOutOfBoundsException("index out of bounds");
		}
		if(size ==  0)
		{
			throw new NoSuchElementException("List is empty");
		}
		
		if(index== 0)
		{
			return cur;
		}
		else
		{
			return getNode(cur.next,index-1);
		}
	}