end element creation