gongming: change to code to initial state