Refeactor addToList function