refactor addUpdateToList for better readability #17