element creation and insertion complete