finished adding all the elements