adding an array for the state