add elements method