updating initial state