saving the state of the list