made add functions add the elements to the table