set up initial state