getElement method implemented