add an element to the list