added getElementPosition