setting up initial state