added addElement methods