parameter to addToList is an int