removed duplicate of the state array.