adding elems at histiry