added the element dictionary getelements and use it in getElement file