adjusted addElement