finished to make initial state