do updateState function