add element method