add all the elements