duplicated code removed, getElementInput init