change number of states