initialize all elements